
package com.hjf.ditubiaozhu.utils;

import com.alibaba.fastjson.JSON;

import okhttp3.RequestBody;

/**
 * Created by hejianfeng on 17/3/22.
 */

public class FastUtils {

    public static RequestBody toBody(Object object) {
        RequestBody body = RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"), JSON.toJSONString(object));
        return body;
    }
}
